<template>
  <view>
    <u-cell icon="order" title="个人信息" value="去完善" isLink="true"></u-cell>
    <u-cell icon="rmb-circle" title="已获福利" value="查看" isLink="true"></u-cell>
    <u-cell icon="list-dot" title="求职历程"></u-cell>
    <SeekList :data="datalist"></SeekList>
  </view>
</template>

<script>
var Apis = {
  GetApplyJobsById: '/Worker/GetApplyJobsById',
}
import { mapGetters } from 'vuex'
import SeekList from './seekList.vue'
export default {
  components: {
    SeekList: SeekList,
  },
  props: {
    data: {
      type: Array,
      default: [],
    },
  },
  name: 'worker',
  data() {
    return {
      datalist: [],
      cbStyle: {
        width: '70px',
      },
      icons: {
        submit: { icon: 'bell', color: '#398ade' }, //申请职位
        check: { icon: 'server-man', color: '#f9ae3d' }, //平台已确认
        success: { icon: 'checkmark-circle', color: '#53c21d' }, //录用
        fail: { icon: 'close-circle', color: '#f56c6c' }, //拒绝
      },
      cbStyle: {
        width: '72px',
        'margin-left': '8px',
      },
    }
  },
  watch: {},
  computed: {},
  created() {
    this.getApplyJobs()
  },
  methods: {
    getApplyJobs() {
      console.log('111111111111')
      this.$http
        .get(Apis.GetApplyJobsById, {
          params: {
            id: this.$store.getters.gid,
          },
        })
        .then((res) => {
          this.datalist = res
        })
    },
  },
}
</script>
<style lang="scss" scoped></style>
